<script>
  export default {
    created(){
      document.title = "新闻"
    }
  }
</script>

<template>
  <div>
    <h2>我是新闻子组件</h2>
    <p>以下是新闻</p>
  </div>
</template>

<style scoped>
  h2{
    color: #00ffc4;
  }
</style>